package com.base.pig.service.impl;

/**
 * <p>
 * 设备总表 服务实现类
 * </p>
 *
 * @author yjh
 * @since 2022-04-15
 */

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.base.pig.mapper.ScDeviceMapper;
import com.base.pig.service.ScDeviceService;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
@Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class ScDeviceServiceImpl  implements ScDeviceService {

    @NonNull
    ScDeviceMapper  scDeviceMapper;


    @Override
    public List<Map<String, Object>> queryDeviceByPoint(String tableName,String  pointid){
        return scDeviceMapper.queryDeviceByPoint(tableName,pointid);
    }

    @Override
    public List<Map<String, Object>> queryDeviceInfoByCondition(String tableName, Wrapper wrapper) {
        return scDeviceMapper.queryDeviceInfoByCondition(tableName, wrapper);
    }

    @Override
    public Page<Map<String, Object>> queryDeviceInfoByConditionPage(Page page, String tableName, Wrapper wrapper) {
        return scDeviceMapper.queryDeviceInfoByConditionPage(page,  tableName,  wrapper);
    }

    @Override
    public Page<Map<String, Object>> queryDeviceInfoByConditionPageOffline(Page page, String tableName, Wrapper wrapper) {
        return scDeviceMapper.queryDeviceInfoByConditionPageOffline(page,  tableName,  wrapper);
    }

    @Override
    public Page<Map<String, Object>> queryDeviceInfoByConditionPageOnline(Page page, String tableName, Wrapper wrapper) {
        return scDeviceMapper.queryDeviceInfoByConditionPageOnline(page,  tableName,  wrapper);
    }


}
